package com.lht.cozyCloud.common.security.annotation;

import org.springframework.cloud.openfeign.EnableFeignClients;

import java.lang.annotation.*;

/**
 * 自定义feign注解
 * 添加basePackages路径
 * 
 * @author ruoyi
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@EnableFeignClients  // 开启feign客户端，会
public @interface EnableCOZYFeignClients
{
    String[] value() default {};
    // 这个注解仅仅是统一加上了包扫描路径
    String[] basePackages() default { "com.lht.cozyCloud" };

    Class<?>[] basePackageClasses() default {};

    Class<?>[] defaultConfiguration() default {};

    Class<?>[] clients() default {};
}
